local skill1 = fk.CreateSkill({
  name = "xxg__wanglie",
  tags = {Skill.Compulsory}, -- 技能标签，Skill.Compulsory代表锁定技，支持存放多个标签
})

skill1:addEffect(fk.CardUsing,{
    anim_type = "offensive",
    can_trigger = function (self, event, target, player, data)
        if player:hasSkill(skill1.name) and data.card.trueName == "slash" then
            local use_events = player.room.logic:getEventsOfScope(GameEvent.UseCard, 1, function (e)
                return e.data.from == player and e.data.card.trueName == "slash"
            end, Player.HistoryTurn)
            return #use_events == 1 and use_events[1].data == data
        end
    end,
    on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    data.disresponsiveList = table.simpleClone(player.room.players)
  end,
})

skill1:addEffect(fk.EventPhaseEnd, {
    anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(skill1.name) and target.phase == Player.Play and not target.dead  and target == player then
      local use_event = player.room.logic:getEventsByRule(GameEvent.UseCard, 1, function (e)
        return e.data.from == target
      end, nil, Player.HistoryPhase)
      return #use_event > 0 and use_event[1].data.card.trueName == "slash"
    end
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    player:drawCards(2,skill1.name, nil, "@@xxg__wanglie-inhand-turn")
  end
})

skill1:addEffect("targetmod", {
  bypass_distances = function (self, player, skill, card, to)
    return player:hasSkill(skill1.name) and skill.trueName == "slash_skill"
  end,
})
skill1:addEffect("maxcards", {
  exclude_from = function(self, player, card)
    return card:getMark("@@xxg__wanglie-inhand-turn") > 0
  end,
})

Fk:loadTranslationTable {
["xxg__wanglie"] = "往烈",
[":xxg__wanglie"] = "锁定技，你使用【杀】无距离限制；你每回合使用的首张【杀】不可被响应；出牌阶段结束时，若你本阶段使用的最后一张牌为【杀】，你摸两张牌且这些牌本回合不计入手牌上限。",
["$xxg__wanglie1"] = "策勋九转，有我无敌！",
["$xxg__wanglie2"] = "奋白毦之勇，立不世之功！",
["@@xxg__wanglie-inhand-turn"] = "往烈",
}
return skill1